package com.pricl.biz.admin.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 腾讯免费ssl证书验证
 * @author winton
 */
@Controller
@RequestMapping(value=".well-known/pki-validation")
public class AuthController {
	@RequestMapping(value="fileauth.txt")
	public void auth(HttpServletResponse res) throws IOException {
		PrintWriter writer = res.getWriter();
		// chigua.chezidao.com
		writer.print("2017082212314246cgcsm3yato1zg0i925csncnhwgmbya70mt098iowqn8cjh21");
		writer.close();
	}
}
